package grape.crm.rest.relation.mapper;

import grape.crm.rest.relation.form.RelationListForm;
import grape.crm.service.relation.po.Relation;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.crm.rest.relation.form.RelationCreateForm;
import grape.crm.rest.relation.form.RelationUpdateForm;
import grape.crm.rest.relation.form.RelationListPageForm;
import grape.crm.rest.relation.vo.RelationVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 客户关系字典表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface RelationWebMapper extends WebMapper<RelationVo, Relation> {

    Relation formToPo(RelationCreateForm f);
    Relation formToPo(RelationUpdateForm f);
    Relation formToPo(RelationListPageForm f);
    Relation formToPo(RelationListForm f);
}
